package com.an.blog.service;

import com.an.blog.admin.domain.bo.BlogAlbumBo;
import com.an.blog.admin.domain.vo.BlogAlbumVo;
import com.an.blog.web.domain.vo.BlogAlbumWebVo;
import com.an.common.core.domain.PageQuery;
import com.an.common.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 博客相册Service接口
 *
 * @author Ann
 * @date 2023-05-08
 */
public interface IBlogAlbumService {

    /**
     * 查询博客相册
     */
    BlogAlbumVo queryById(Long albumId);

    /**
     * 查询博客相册列表
     *
     * @param bo        业务对象
     * @param pageQuery 页面查询
     * @return {@link TableDataInfo }<{@link BlogAlbumVo }>
     * @author: Ann
     * @createDate: 2023/05/10 20:13:22
     * @version: 1.0.0
     */
    TableDataInfo<BlogAlbumVo> queryPageList(BlogAlbumBo bo, PageQuery pageQuery);

    /**
     * 查询博客相册列表
     *
     * @param bo 业务对象
     * @return {@link List }<{@link BlogAlbumVo }>
     * @author: Ann
     * @createDate: 2023/06/01 16:06:14
     * @version: 1.0.0
     */
    List<BlogAlbumVo> queryList(BlogAlbumBo bo);

    /**
     * 新增博客相册
     *
     * @param bo 业务对象
     * @return {@link Boolean }
     * @author: Ann
     * @createDate: 2023/06/01 16:06:09
     * @version: 1.0.0
     */
    Boolean insertByBo(BlogAlbumBo bo);

    /**
     * 修改博客相册
     *
     * @param bo 业务对象
     * @return {@link Boolean }
     * @author: Ann
     * @createDate: 2023/06/01 16:06:10
     * @version: 1.0.0
     */
    Boolean updateByBo(BlogAlbumBo bo);

    /**
     * 校验并批量删除博客相册信息
     *
     * @param ids     id
     * @param isValid 是有效
     * @return {@link Boolean }
     * @author: Ann
     * @createDate: 2023/05/11 11:14:29
     * @version: 1.0.0
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 更新相册状态
     *
     * @param bo 业务对象
     * @return int
     * @author: Ann
     * @createDate: 2023/05/10 20:41:37
     * @version: 1.0.0
     */
    int updateAlbumStatus(BlogAlbumBo bo);

    /**
     * 查询通过id列表
     *
     * @param albumIds 相册id
     * @return {@link List }<{@link BlogAlbumVo }>
     * @author: Ann
     * @createDate: 2023/05/10 21:24:38
     * @version: 1.0.0
     */
    List<BlogAlbumVo> queryListByIds(Collection<Long> albumIds);

    /**
     * 查询页面列表
     *
     * @param pageQuery 页面查询
     * @return {@link TableDataInfo }<{@link BlogAlbumWebVo }>
     * @author: Ann
     * @createDate: 2023/06/26 10:35:02
     * @version: 1.0.0
     */
    TableDataInfo<BlogAlbumWebVo> queryWebPageList(PageQuery pageQuery);
}
